import request from '@/utils/request'

// 查询产品追踪列表
export function listTracedata(query) {
  return request({
    url: '/mes/Tracedata/list',
    method: 'get',
    params: query
  })
}

// 查询产品追踪详细
export function getTracedata(id) {
  return request({
    url: '/mes/Tracedata/' + id,
    method: 'get'
  })
}

// 新增产品追踪
export function addTracedata(data) {
  return request({
    url: '/mes/Tracedata',
    method: 'post',
    data: data
  })
}

// 修改产品追踪
export function updateTracedata(data) {
  return request({
    url: '/mes/Tracedata',
    method: 'put',
    data: data
  })
}

// 删除产品追踪
export function delTracedata(id) {
  return request({
    url: '/mes/Tracedata/' + id,
    method: 'delete'
  })
}

// 导出产品追踪
export function exportTracedata(query) {
  return request({
    url: '/mes/Tracedata/export',
    method: 'get',
    params: query
  })
}